import Vue from 'vue';
import VueRouter from 'vue-router';
import App from "./app.vue";
import Home from './pages/home/home.vue';
import Member from './pages/member/member.vue';
import Classify from './pages/classify/classify.vue';
import Shopcar from './pages/shopcar/shopcar.vue';
import My from './pages/my/my.vue';
Vue.use(VueRouter)

const router = new VueRouter({
	// mode:'history',
	routes:[
		{path:"/",component:Home},
		{path:"/member",component:Member},
		{path:"/classify",component:Classify},
		{path:"/shopcar",component:Shopcar},
		{path:"/my",component:My},
	]
})
//指定一开始加载的页面
//router.push("class")

new Vue({
	router,
	render:h=>h(App)
}).$mount("#app")